/**
 * Project Name:springmvc
 * File Name:TClubMemberServiceI.java
 * Package Name:com.yichaoart.club.biz
 * Date:2016年5月12日下午3:21:38
 * Copyright (c) 2016,  All Rights Reserved.
 *
*/

package com.yichaoart.club.biz.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yichaoart.club.biz.TClubOrderServiceI;
import com.yichaoart.club.dal.TClubOrderMapper;
import com.yichaoart.club.model.TClubOrder;

/**
 * ClassName:TClubMemberServiceI <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2016年5月12日 下午3:21:38 <br/>
 * @author   i1093108915@yeah.net
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
@Service
public class TClubOrderServiceImpl implements TClubOrderServiceI{

	@Autowired
	TClubOrderMapper orderMapper;
	
	public int insertOrder(TClubOrder order) {
		return orderMapper.insert(order);
	}

	public TClubOrder selectByPrimaryKey(String sid) {
		return orderMapper.selectByPrimaryKey(sid);
	}

	public int updateByPrimaryKeySelective(TClubOrder record) {
		return orderMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<TClubOrder> queryOrderList(int start, int limit) {
		Map<String, Object> query = new HashMap<String, Object>();
		query.put("start", start);
		query.put("limit", limit);
		return orderMapper.queryOrderList(query);
	}
}

